<template>
  <div class="dashboard-container">
    <el-row>
      <el-col :span="3">
        <el-card style="text-align:center">
          <span style="font-size:50px;color:red;">0</span>
        </el-card>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <TodoItem :todo-size="todoSize" />
      <Message />
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import TodoItem from './components/TodoItem'
import Message from './components/Message'

export default {
  name: 'Dashboard',
  components: {
    TodoItem,
    Message
  },
  data() {
    return {
      todoSize: 20
    }
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  methods: {

  }
}
</script>

<style lang="scss">
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.title{
  font-weight: bold;
}
.card-box{
  height: 290px;
}
.el-row{
  margin-bottom: 20px;
}
</style>
